POV-Ray : Newsgroups : povray.general : About the unit : Re: About the unit Server Time
5 Aug 2024 04:18:32 EDT (-0400)
  Re: About the unit  
From: Sir Charles W  Shults III
Date: 27 Nov 2002 10:57:45
Message: <3de4eb79$1@news.povray.org>
If you know where your camera is in POVray (in coordinates or units) and you
also know where your object is, the distance is sqrt( (x2 - x1)^2 + (y2 - y1)^2
+ (z2 - z1)^2 ), the old and venerable Pythagorean theorem.
    <x1, y1, z1> should be your camera location, and <x2, y2, z2> should be your
object location.

Cheers!

Chip Shults
My robotics, space and CGI web page - http://home.cfl.rr.com/aichip


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.